// Create one test item for each context type.

function genericOnClick(info, tab) {
  console.log("info: " + JSON.stringify(info));
  console.log("tab: " + JSON.stringify(tab));
  chrome.tabs.create({"url":"http://www.flickr.com/tools/sendto.gne?url="+info.srcUrl});
}

var context = "image";
var title = "Upload to Flickr";
var id = chrome.contextMenus.create({"title": title, "contexts":[context],
                                     "onclick": genericOnClick});


